package com.nut.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nut.article.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    @Select("select role_id from sys_user_role where user_id = #{userId}")
    List<Integer> selectByUserId(@Param("userId") Integer userId);

}
